/*
 * 百度在线网络技术（北京）有限公司拥有本软件版权2021并保留所有权利。
 * Copyright 2021, Baidu.com,Inc 2:Baidu Online Network Technology (Beijing) Co.,Ltd,
 * All rights reserved.
 */

package com.azdebugit.niuke.huawei.unencrypt;


import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main {
	public static void main ( String[] args ) throws IOException {
		BufferedReader bf = new BufferedReader( new InputStreamReader( System.in ) );
		String s ;
		while( ( s = bf.readLine() ) != null ) {
			
			char aucPassword[] = s.toCharArray();
			char result[] = bf.readLine().toCharArray();
			
			int length1;
			if ( aucPassword.length <= 100 ) {
				length1 = aucPassword.length;
			}
			else {
				length1 = 100;
			}
			char aucResult[] = new char[ length1 ];
			
			int length2;
			if ( result.length <= 100 ) {
				length2 = result.length;
			}
			else {
				length2 = 100;
			}
			char password[] = new char[ length2 ];
			
			Encrypt ( aucPassword , aucResult );
			unEncrypt ( result , password );
		}
		bf.close();
	}
	
	static void Encrypt (char aucPassword[], char aucResult[]) {
		
		for ( int i = 0 ; i < aucResult.length ; i++ ) {
			if ( aucPassword[ i ] >= 65 && aucPassword[ i ] <= 90 ) {
				if ( aucPassword[ i ] == 'Z' ) {
					aucResult[ i ] = 'a';
				}
				else {
					aucResult[ i ] = (char) (aucPassword[ i ] + 33 );
				}
			}
			
			else  if ( aucPassword[ i ] >= 97 && aucPassword[ i ] <= 122 ) {
				if ( aucPassword[ i ] == 'z' ) {
					aucResult[ i ] = 'A';
				}
				else {
					aucResult[ i ] = (char) (aucPassword[ i ] - 31 );
				}
			}
				
			else if ( aucPassword[ i ] >= 48 && aucPassword[ i ] <= 57 ) {
				if ( aucPassword[ i ] == '9' ) {
					aucResult[ i ] = '0';
				}
				else {
					aucResult[ i ] = (char) (aucPassword[ i ] + 1 );
				}
			}
				
			else {
				aucResult[ i ] = aucPassword[ i ];
			}
		}
			
		System.out.println( String.valueOf( aucResult ) );
	}
	
	static int unEncrypt (char result[], char password[]) {
		for ( int i = 0 ; i < password.length ; i++ ) {
			if ( result[ i ] >= 65 && result[ i ] <= 90 ) {
				if ( result[ i ] == 'A' ) {
					password[ i ] = 'z';
				}
				else {
					password[ i ] = (char) ( result[ i ] + 31 );
				}
			}
			else if ( result[ i ] >= 97 && result[ i ] <= 122 ) {
				if ( result[ i ] == 'a' ) {
					password[ i ] = 'Z';
				}
				else {
					password[ i ] = ( char )( result[ i ] - 33 );
				}
			}
			else if ( result[ i ] >= 48 && result[ i ] <= 57 ) {
				if ( result[ i ] == '0' ) {
					password[ i ] = '9';
				}
				else {
					password[ i ] = ( char )( result[ i ] - 1 );
				}
			}
			else {
				password[ i ] = result[ i ];
			}
		}
		System.out.println( String.valueOf( password ) );
		return 0;
	}
}